package org.lee.mem.app;

import lombok.Data;

/**
 * ConfigOriginator
 * 记录者
 *
 * @author dralee
 * @date 2021-11-23 18:15:26
 **/
@Data
public class ConfigOriginator {
    private ConfigFile configFile;

    public ConfigMemento saveMemento() {
        return new ConfigMemento(configFile);
    }

    public void getMemento(ConfigMemento memento) {
        this.configFile = memento.getConfigFile();
    }
}
